﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x02000080 RID: 128
	public class TAlterSchemaStmt : TCustomSqlStatement
	{
		// Token: 0x0600031D RID: 797 RVA: 0x002F980A File Offset: 0x002F7A0A
		public TObjectName getSchemaName()
		{
			return this.schemaNameList.getObjectName(0);
		}

		// Token: 0x0600031E RID: 798 RVA: 0x002F9818 File Offset: 0x002F7A18
		public TObjectNameList getNewSchemaNameList()
		{
			return this.newSchemaNameList;
		}

		// Token: 0x0600031F RID: 799 RVA: 0x002F9820 File Offset: 0x002F7A20
		public TObjectNameList getSchemaNameList()
		{
			return this.schemaNameList;
		}

		// Token: 0x06000320 RID: 800 RVA: 0x002F9828 File Offset: 0x002F7A28
		public TAlterSchemaStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstAlterSchema;
		}

		// Token: 0x06000321 RID: 801 RVA: 0x002F983C File Offset: 0x002F7A3C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TAlterSchemaSqlNode talterSchemaSqlNode = (TAlterSchemaSqlNode)this.rootNode;
			this.schemaNameList = talterSchemaSqlNode.SchemaNameList;
			this.newSchemaNameList = talterSchemaSqlNode.NewSchemaNameList;
			return 0;
		}

		// Token: 0x06000322 RID: 802 RVA: 0x002F9880 File Offset: 0x002F7A80
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000323 RID: 803 RVA: 0x002F9890 File Offset: 0x002F7A90
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400109C RID: 4252
		private TObjectNameList schemaNameList;

		// Token: 0x0400109D RID: 4253
		private TObjectNameList newSchemaNameList;
	}
}
